class CreateTickets < ActiveRecord::Migration
  def self.up
    create_table :tickets do |t|
      t.column :name, :string
      t.column :project_id, :integer
      t.column :owner_id, :integer
      t.column :status, :integer, :dafault => 0
      t.column :priority, :integer, :dafault => 0
      t.column :ticket_type, :integer, :dafault => 0
      t.column :user_id, :integer
      t.column :updated_by_id, :integer
      
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
    end
  end

  def self.down
    drop_table :tickets
  end
end
